<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/view/commons/common.jsp" %>
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <c:forEach items="${menusList}" var="menu">
                <li class="list" >
                    <c:if test="${menu.menuUrl == null || menu.menuUrl == ''}">
                        <a href="#">
                            <i class="iconfont">&#xe761;</i>
                                ${menu.menuName}
                            <i class="iconfont nav_right">&#xe697;</i>
                        </a>
                    </c:if>
                    <c:if test="${menu.menuUrl != null && menu.menuUrl != '' }">
                        <a href="${menu.menuUrl}">
                            <i class="iconfont">&#xe761;</i>
                                ${menu.menuName}
                            <i class="iconfont nav_right">&#xe697;</i>
                        </a>
                    </c:if>
                    <c:if test="${not empty menu.list}">
                        <ul class="sub-menu">
                            <c:forEach items="${menu.list}" var="list">
                                <li>
                                    <a href="${list.menuUrl}">
                                        <i class="iconfont">&#xe6a7;</i>
                                            ${list.menuName}
                                    </a>
                                </li>
                            </c:forEach>
                        </ul>
                    </c:if>
                </li>
            </c:forEach>
        </ul>
    </div>
</div>